<!DOCTYPE html>
<html lang="en"
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>管理员页面</title>
    <link rel="stylesheet" th:href="@{/layui-v2.6.4/layui/css/layui.css}" type="text/css"/>
    <link rel="stylesheet" th:href="@{/layui-v2.6.4/layui/css/modules/code.css}" type="text/css"/>
    <script th:src="@{/js/jquery-3.5.1.min.js}"></script>
    <script charset="utf-8" th:src="@{/layui-v2.6.4/layui/layui.js}" type="text/javascript"></script>
    <script>
        layui.use('element', function () {
            var element = layui.element;
        });
    </script>
</head>
<body>
<div class="layui-layout layui-layout-admin">
    <div class="layui-header layui-bg-black">
        <div class="layui-logo layui-bg-black">后台管理系统</div>
        <ul class="layui-nav layui-layout-left layui-bg-black">
            <li class="layui-nav-item" shiro:hasPermission="root"><a href="/toadmingradePage"
                                                                     target="if-windows">管理员申诉</a></li>
            <li class="layui-nav-item" shiro:hasAnyPermissions="super,unfinished"><a href="/tolevelpage"
                                                                                     target="if-windows">升级申请</a></li>
            <li class="layui-nav-item" shiro:hasPermission="root"><a href="/toadminlevel" target="if-windows">权限管理</a>

            </li>
            <li class="layui-nav-item"  shiro:hasAnyPermissions="super,root">
                <a  target="if-windows">绩效统计</a>
                <dl class="layui-nav-child">
                    <dd><a target="if-windows" href="/sysGraph">登录次数</a></dd>
                    <dd><a target="if-windows" href="/sysGraph0">操作次数</a></dd>
                </dl>
            </li>
        </ul>
        <!-- 头部右侧导航栏  -->
        <ul class="layui-nav layui-layout-right layui-bg-black">
            <li class="layui-nav-item">
                <a target="if-windows">
                    <img class="layui-nav-img"
                         src="//tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg">
                    <span th:text="${adminName}"></span>
                </a>
				<dl class="layui-nav-child">
					<dd><a target="if-windows" href="/admin/toAdminCenter">个人中心</a></dd>
					<dd><a target="if-windows" href="/admin/toChangePassword">修改密码</a></dd>
					<dd><a target="if-windows">设置</a></dd>
				</dl>
            </li>
            <li class="layui-nav-item"><a href="/logOut">退出</a></li>
        </ul>
    </div>
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree layui-bg-black" lay-filter="test">
                <li class="layui-nav-item layui-nav-itemed" shiro:hasPermission="super">
                    <a class="" target="if-windows">信息管理</a>
                    <dl class="layui-nav-child">
                        <!--跳转到用户管理页面-->
                        <dd><a href="/toUserMgPage" target="if-windows">用户管理</a></dd>
                        <!--跳转到用户委托管理-->
                        <dd><a href="/toEntrustPage" target="if-windows">委托管理</a></dd>
                        <!--添加委托-->
                        <dd><a href="/toAddEntrustPage" target="if-windows">委托类型</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item layui-nav-itemed" shiro:hasAnyPermissions="super,unfinished">
                    <a class="" target="if-windows">论坛管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="/toArticlePage" target="if-windows">帖子管理</a></dd>
                        <dd><a href="/toCommentPage" target="if-windows">评论管理</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item layui-nav-itemed" shiro:hasAnyPermissions="super,root">
                    <a class="" target="if-windows">申诉管理</a>
                    <dl class="layui-nav-child">
                        <dd><a target="if-windows" href="/admin/toshensu">用户账号申诉</a></dd>
                        <dd><a target="if-windows" href="/root/toshensu" shiro:hasAnyPermissions="root">管理员账号申诉</a></dd>
                        <dd><a target="if-windows">委托申诉</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
    </div>
    <div class="layui-body">
        <div>
            <iframe class="layui-layer-iframe" frameborder="0" name="if-windows" scrolling="no" src=""
                    style="height: 83vh;width: 100%;"></iframe>
        </div>
    </div>

    <div class="layui-footer">
        底部
    </div>
</div>
</body>
</html>
